# Default Django settings for bingo project
#
#  (!!!)
#
#  DON'T CHANGE THIS FILE, USE settings_local.py. YOU GET A TEMPLATE IN
#  settings_local.template (COPY HIM TO settings_local.py AND MAKE 
#  YOUR NECESSARY CHANGES.
# 

DEBUG = True
TEMPLATE_DEBUG = DEBUG

# I can't determine this, use settings_local.py.
ADMINS = ()
MANAGERS = ADMINS

DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = '../../db/bingo.sqlite'

TIME_ZONE = 'America/Sao_Paulo Brazil/East'
LANGUAGE_CODE = 'pt-br'
SITE_ID = 1

USE_I18N = True

MEDIA_ROOT = '../../media/'
MEDIA_URL = '/media/'
ADMIN_MEDIA_PREFIX = '/admin_media/'

# Paths for third party apps, helpers and other tools for extending Bingo
BINGO_SITE_PACKAGES_PATHS = [
    '/usr/local/lib/bingo/0.1/site-packages',
]

# Used to provide a seed in secret-key hashing algorithms. Set this to
# a random string in your settings_local.py - the longer, the better.
SECRET_KEY = 'set-this-in-your-settings_local.py!'


TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
)

ROOT_URLCONF = 'bingo.urls'

TEMPLATE_DIRS = (
   '../../templates',
)

INSTALLED_APPS = (

    # contrib apps
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'django.contrib.flatpages',

    # 3rd part apps
    'tagging',

    # bingo apps
    'bingo.apps.blog',
)



try:
    from settings_local import *
except ImportError:
    from warnings import warn
    msg = "You don't have settings_local.py file, using defaults settings."
    try:
        # don't work in Python 2.4 or before
        warn(msg, category=ImportWarning)
    except NameError:
        warn(msg)

import sys
sys.path += BINGO_SITE_PACKAGES_PATHS
